package base;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
import state.*;
import util.App;
import util.resource.ResourceManager;

public class Driver extends StateBasedGame
{
	public Driver()
	{
		super("Joogle");
	}

	public void initStatesList(GameContainer arg0) throws SlickException
	{
		ResourceManager.load();
		addState(new TestState());
	}
	
	public static void main(String[] args)
	{	
		try
		{
			App app = new App(new Driver());
			app.setShowFPS(false);
			app.setDisplayMode(640,480,false);
			app.start();
		}
		catch(SlickException e)
		{
			e.printStackTrace();
		}
	}
}
